Einhugur macOS Bridge plugin.

EinhugurCoreBridge.NSMutableDictionary Class

An object representing read and write collection of key-value pairs, containing Cocoa objects.

EinhugurCoreBridge.NSDictionary
   NSMutableDictionary

class EinhugurCoreBridge.NSMutableDictionary

Constructors

NSMutableDictionaryDefault constructor for the NSMutableDictionary.

Properties

ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
Count (Inherited) Returns number of key value pairs in the dictionary.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

shared CastDoes deep cast on incoming NSObject to NSMutableDictionary
ClearRemoves all elements from the dictionary.
DoubleForKey (Inherited) Returns Double for a given key.
shared FromIntegerPtrConstructs NSMutableDictionary object from Integer handle coming from declares or 3rd party plugin.
GetKeys (Inherited) Returns a new NSArray containing the dictionary’s keys, or an empty array if the dictionary has no entries.
GetValues (Inherited) Returns a new NSArray containing the dictionary’s values, or an empty array if the dictionary has no entries.
IntegerForKey (Inherited) Returns Integer for a given key.
shared IsNSMutableDictionaryReturns true if the NSObject under the hood is NSMutableDictionary or derived from NSMutableDictionary.
ObjectForKey (Inherited) Returns NSObject for a given key, or nil if key was not found.
ObjectForKey (Inherited) Returns NSObject for a given string key, or nil if key was not found.
Release (Inherited) Releases the NSObject.
RemoveRemoves item from the dictionary by given NSObject key.
RemoveRemoves item from the dictionary by given string key.
Retain (Inherited) Retains the NSObject
SetDoubleForKeySets double value for given string key.
SetIntegerForKeySets integer value for given string key.
SetObjectForKeySets object value for given NSObject key.
SetObjectForKeySets object value for given string key.
SetStringForKeySets string value for given string key.
StringForKey (Inherited) Returns String for a given key.

Constants

Version = 5.0 (Inherited)

Examples

Note when you take out of NSMutableDictionary class then you will need to do “deep cast” as in use .Cast like for example NSImage.Cast to cast the objects if you want to get them as anything but base NSObject.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit